package com.itboye.ihomebank.util.controller;

import android.app.Activity;
import android.content.Intent;

import com.itboye.ihomebank.activity.key.ActivityMyKey;
import com.itboye.ihomebank.activity.guanjia.ActivityGuanJia;
import com.itboye.ihomebank.activity.me.ActivityMyData;
import com.itboye.ihomebank.activity.home.ActivityWoDeQiuZu;
import com.itboye.ihomebank.activity.qianyue.ActivityMySign;
import com.itboye.ihomebank.activity.myzhujia.ActivityMyWallte;
import com.itboye.ihomebank.activity.myzhujia.ActivityMyappointment;
import com.itboye.ihomebank.activity.myzhujia.ActivityMycollection;

/**
 * 登录的状态
 *
 */
public class LoginedState implements ILoginState {
	/**
	 * 我的求租
	 */
	@Override
	public void onMyRental(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityWoDeQiuZu.class);
		act.startActivity(intent);
	}

	/**
	 * 我的钱包
	 */
	public void onMyMoneyClick(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMyWallte.class);
		act.startActivity(intent);
	}
	/**
	 * 生活管家
	 */
	@Override
	public void onMyHousekeeper(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityGuanJia.class);
		act.startActivity(intent);
	}

	/**
	 * 我的收藏
	 */
	@Override
	public void onMyCollectionClick(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMycollection.class);
		act.startActivity(intent);
		
	}
	/**
	 * 我的预约
	 */
	@Override
	public void onMyAppointmentClick(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMyappointment.class);
		act.startActivity(intent);
		
	}
	
	/**
	 * 我的签约
	 */
	@Override
	public void onMySignClick(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMySign.class);
		act.startActivity(intent);
		
	}
	/**
	 * 个人中心
	 */
	@Override
	public void onMyPersonalCenter(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMyData.class);
		act.startActivity(intent);
		
	}
	/**
	 * 
	 * 收藏
	 */
	@Override
	public void collection(Activity act, Object data) {
		// TODO Auto-generated method stub
		
	}
	/**
	 * 备份钥匙
	 */
	@Override
	public void beifen(Activity act, Object data) {
		Intent intent = new Intent(act, ActivityMyKey.class);
		act.startActivity(intent);
		
	}

}
